package com.fastloan.mgt.postloan.service;

import com.fastloan.mgt.postloan.model.vo.PostLoanMonitorExt;
import com.kawins.base.BaseService;
import com.fastloan.mgt.postloan.model.ZyPostLoanMonitor;
import javax.annotation.Nullable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author gelon
 *         createTime 2017/11/16
 */
public interface ZyPostLoanMonitorService extends BaseService<ZyPostLoanMonitor> {


    /**
     * 定时任务添加进件贷后监控实施
     */
    void scanLoanByApplication();


    /**
     * 保存一个手动贷后
     */
    ZyPostLoanMonitor saveUpdatePostloan(ZyPostLoanMonitor zyPostLoanMonitor);

    /**
     * 如果postloanId 为null 新建一个贷后  保存贷后文件  否则直接保存贷后
     */
    ZyPostLoanMonitor saveUpdatePostloanFile(String appId,@Nullable String postloanId,MultipartFile file);

    /**
     * 获取客户经理下进件的贷后实施信息
     */
    List<PostLoanMonitorExt> queryPostloan(Map<String, Object> map);

    /**
     * 更新贷后实施
     */
    void uploadPostloan(ZyPostLoanMonitor postLoanMonitor, MultipartFile[] files);
}
